home *** CD-ROM | disk | FTP | other *** search
/ CDUTIL 13 / CDUTIL #13 Julio 1995.iso / windows / acadcom / ads / adscodes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-08  |  4.4 KB  |  102 lines

  1. /* Next available MSG number is   1 */
  2.  
  3. /* ADSCODES.H - Definitions of the AutoCAD function request and result
  4.                 codes used by ADS programs.
  5.  
  6.  
  7.    Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994 by Autodesk, Inc.
  8.  
  9.    Permission to use, copy, modify, and distribute this software in 
  10.    object code form for any purpose and without fee is hereby granted, 
  11.    provided that the above copyright notice appears in all copies and 
  12.    that both that copyright notice and the limited warranty and 
  13.    restricted rights notice below appear in all supporting 
  14.    documentation.
  15.  
  16.    AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.  
  17.    AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF 
  18.    MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK, INC.
  19.    DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE 
  20.    UNINTERRUPTED OR ERROR FREE.
  21.  
  22.    Use, duplication, or disclosure by the U.S. Government is subject to 
  23.    restrictions set forth in FAR 52.227-19 (Commercial Computer 
  24.    Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) 
  25.    (Rights in Technical Data and Computer Software), as applicable.
  26.     
  27.    .
  28. */
  29.  
  30. #ifndef _ADSCODES_H
  31. #define _ADSCODES_H 1
  32.  
  33.  
  34. /*  AutoCAD to ADS program request type codes  */
  35.  
  36. #define RQSAVE  14                    /* ACAD is saving the drawing */
  37. #define RQEND   15                    /* ACAD is ending the drawing editor */
  38. #define RQQUIT  16                    /* ACAD quits */
  39. #define RQCFG   22                    /* AutoCAD is returning from CONFIG */
  40.  
  41. /* The following are LISP to Application ONLY request codes.  They form
  42.     the interface for ADS */
  43. #define RQXLOAD 100                   /* Load external functions */
  44. #define RQXUNLD 101                   /* UN-Load application  */
  45. #define RQSUBR  102                   /* External subroutine request */
  46. #define RQHUP   105                   /* Acad has disconnected from the app */
  47. #define RQXHELP 118                   /* Define help for this function */
  48.  
  49.  
  50. /*  ADS program to AutoCAD result type codes  */
  51.  
  52. #define RSRSLT   1                    /* Result returned */
  53. #define RSERR    3                    /* Error in evaluation -- no result */
  54.  
  55.  
  56.  
  57. /*  Result value type codes  */
  58.  
  59.     /* These are used in the resbuf.  These ARE NOT the same
  60.        as the group codes used in the entity access routines, and sould
  61.        not be confused with those.  The same result buffer IS used for 
  62.        entity records, however, in which case the restype field may take
  63.        on many more values than those listed here. */
  64.  
  65. #define RTNONE    5000                /* No result */
  66. #define RTREAL    5001                /* Real number */
  67. #define RTPOINT   5002                /* 2D point X and Y only */
  68. #define RTSHORT   5003                /* Short integer */
  69. #define RTANG     5004                /* Angle */
  70. #define RTSTR     5005                /* String */
  71. #define RTENAME   5006                /* Entity name */
  72. #define RTPICKS   5007                /* Pick set */
  73. #define RTORINT   5008                /* Orientation */
  74. #define RT3DPOINT 5009                /* 3D point - X, Y, and Z */
  75. #define RTLONG    5010                /* Long integer */
  76. #define RTVOID    5014                /* Blank symbol */
  77. #define RTLB      5016                /* list begin */
  78. #define RTLE      5017                /* list end */
  79. #define RTDOTE    5018                /* dotted pair */
  80. #define RTNIL     5019                /* nil */
  81. #define RTDXF0    5020                /* DXF code 0 for ads_buildlist only */
  82. #define RTT       5021                /* T atom */
  83.  
  84. /* The following RT codes are for the ADS program interface.
  85.    They are used to signal success or failure (error) of the
  86.    ADS library functions.  RTFAIL in particular means that 
  87.    the link has failed (most likely because AutoLISP has
  88.    died or exited), and the application should cleanup and exit.
  89. */
  90.  
  91. #define RTNORM    5100                /* Request succeeded */
  92.  
  93. /* Various error codes returned to ADS application by library */
  94. #define RTERROR  -5001                /* Some other error */
  95. #define RTCAN    -5002                /* User cancelled request -- Ctl-C */
  96. #define RTREJ    -5003                /* AutoCAD rejected request -- invalid */
  97. #define RTFAIL   -5004                /* Link failure -- Lisp probably died */
  98. #define RTKWORD  -5005                /* Keyword returned from getxxx() routine */
  99.  
  100. #endif    /* _ADSCODES_H */
  101.  
  102.